<!DOCTYPE>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<title>登录页面</title>
<style type="text/css">
	*{
		margin:0px;
		padding: 0px;
	}
	p>span{
		margin-top:6px;
		background: #c1dbfc;
		width: 100px;
		height:25px;号码		text-align: center;
		line-height: 25px;
		border: 1px solid #ccc;
		display: inline-block;  /*将行内元素转换为行内块元素*/
	}
	h2{
		text-align: center;
	}
	div{
		width: 700px;
		height:480px;
		margin:0px auto;
		border: 1px solid #aaa;
		background: #E0E0E0;
	}
	.one{
		width:800px;
    	height:510px;
    	background:#E0E0E0;
    	position:absolute;
    	left:120px;
	}
	.content{
	    width: 700px;
	    height: 40px;
	    background: #e7f3f3;
	    line-height: 40px;
	    text-align: center;
	}
</style>
<script>
	function deleteFun(){
		if(confirm('真的要删除吗')){
			return true;
		}else{
			return false;
		}
	}
</script>
</head>
<body>
		<form method="post">
		<div class="content">
				<h2>任务详细信息</h2>
			</div>
		<div align="center">
		<table border="1" cellspacing="0" cellpadding="20" height="300" width="400">
			<br/>
				<tr >
					<th>任务名称:</th>
					<td th:text="${task.task_name}"></td>
				</tr>
				<tr>
					<th>任务描述:</th>
					<td th:text="${task.task_description }"></td>
				</tr>
				<tr>
					<th>开始时间:</th>
					<td th:text="${task.task_begin_time}"></td>
				</tr>
				<tr>
					<th>结束时间:</th>
					<td th:text="${task.task_end_time}"></td>
				</tr>
				<tr>
					<th>实施人:</th>
					<td th:text="${task.staff_id}"></td>
				</tr>
				<tr>
					<th>任务状态:</th>
					<td th:text="${task.task_name}"></td>
				</tr>
				<tr>
					<th colspan="2"><a th:href="@{/staff/makePlan(id=${task.id},flag=1)}">新建计划</a></th>
				</tr>
			</table>

		</form>
		<!--  <div align="center">   -->
			<h1 align="center">计划信息</h1>
			<table border="1" cellspacing="0">
				<tr>
					<th>计划名称</th>
					<th>完成状态</th>
					<th>是否反馈</th>
					<th>开始时间</th>
					<th>结束时间</th>
					<th>操作</th>
				</tr>


			<tr th:each="plan:${plans}">
				<td><a href="" th:text="${plan.plan_name}"></a></td>
					<td th:text="${plan.plan_state}"></td>
					<td th:text="${plan.feedback }"></td>
					<td th:text="${plan.plan_begin_date }"></td>
					<td th:text="${plan.plan_end_date}"></td>
					<td><a th:href="@{/staff/removePlan(id = ${plan.id})}" onclick="return deleteFun()">删除</a></td>
					<td><a th:href="@{/staff/feedBack(id = ${plan.id},flag=1)}">编辑</a></td>
			</tr>


			</table>
		</div>
</body>
</html>
